<?php
/**
 * --------------------------------------------------------------
 * 规则验证器
 * --------------------------------------------------------------
 * Light Year Doc
 * @author yinq<3331653644@qq.com>
 * --------------------------------------------------------------
 */
namespace app\admin\validate;

use think\Validate;

class AuthRule extends Validate
{
    protected $rule = [
	    'name'  => "require|max:80",
        'title' => "require|max:20",
    ];
    
    protected $message = [
        'name.require'  => '规则标识不能为空',
        'name.max'      => '规则标识最多不能超过80个字符',
        'title.require' => '规则名称不能为空',
        'title.max'     => '规则名称最多不能超过20个字符',
    ];
}